package com.itheima.dao;

import com.itheima.pojo.User;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.web.bind.annotation.RequestParam;
import tk.mybatis.mapper.common.Mapper;



public interface UserMapper extends Mapper<User> {

    @Select("select * from t_user where user_name=#{username}")
    User findByUsername(@Param("username") String username);

    //重置密码
    @Update("update t_user set pass_word=#{passWord} where uid=#{uid}")
    void resetPassWord(@RequestParam("uid") String uid, @RequestParam("passWord") String passWord);


}

